<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>确认订单</title>
    <link rel="stylesheet" href="/static/component/pear/css/pear.css"/>
    <meta name="viewport" content="width=device-width,user-scalable=no, initial-scale=1">
    <script src="/static/component/layui/layui.js"></script>
    <script src="/static/component/pear/pear.js"></script>
</head>
<style>
    .view_body {
        padding: 20px;
    }

    .tips {
        background: #fef0f0;
        color: #f56c6c;
        font-size: 14px;
        padding: 8px 16px;
        text-align: center;
        border: 1px solid #fef0f0;

    }

    .order-info {
        padding: 10px 0;
    }

    .order-info .order-info-item {
        padding-top: 6px;
    }

    .order-footer {
        padding-top: 20px;
    }

    .order-info-buttons {
        padding-top: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .pear-btn + .pear-btn {
        margin-left: 12px;
    }

    .pear-btn {
        padding-left: 15px;
        padding-right: 15px;
        border-radius: 10px;
    }

    .order-info-item .price {
        font-size: 16px;
        color: #f56c6c !important;
    }

    .header-box {
        padding-bottom: 10px;
        border-bottom: 1px solid #ebeef5;
    }

    .header-box .pay-logo {
        height: 30px;
        user-select: none;
    }

    .pay_con .left {
        flex: 1;
        margin-right: 20px;
    }

    .pay_qr {
        display: flex;
        margin-bottom: 25px;
        justify-content: center;
        position: relative;
    }

    .pay_qr img {
        width: 250px;
        height: 250px;
    }
</style>
<body>

<div class="view_body"></div>
<script type="text/html" id="view_body_data">
    <div class="confirm_con">
        <div class="tips">
            购买后一年内可免费下载和更新，虚拟产品不支持7天无理由退款
        </div>
        <div class="order-info">
            <div class="order-info-item">订单标题：购买《{{d.orders.goods_name}}》</div>
            <div class="order-info-item">订单编号：{{d.orders.out_trade_no}}</div>
            <div class="order-info-item">购买用户：{{d.user.nickname}}（{{d.user.phone}}）</div>
            <div class="order-info-item">订单价格： <span class="price">{{# if(d.orders.sale_type== 2){ }}￥{{# } }}{{d.orders.sale_price || '免费'}} {{# if(d.orders.sale_type== 1){
                }}积分{{# } }}</span></div>
        </div>
        <div class="order-footer">
            <div class="order-info-buttons">
                {{# if(d.orders.is_down==1){ }}
                <button class="pear-btn pear-btn-sm btn_theme_1" onclick="payInfo(1);">立即安装</button>
                {{# } else { }}
                {{# if(d.orders.sale_type== 1){ }}
                <button class="pear-btn pear-btn-sm btn_theme_2" onclick="payInfo(2);">积分支付</button>
                {{# } }}
                {{# if(d.orders.sale_type== 2){ }}
                <button class="pear-btn pear-btn-sm btn_theme_2" onclick="payInfo(3);">余额支付</button>
                <button class="pear-btn pear-btn-sm btn_theme_3" onclick="payInfo(4);">微信支付</button>
                <button class="pear-btn pear-btn-sm btn_theme_4" onclick="payInfo(5);">支付宝支付</button>
                {{# } }}
                {{# } }}
            </div>
        </div>

    </div>
</script>

<script type="text/html" id="pay_body_data">
    <div class="header-box">
        {{# if(d.orders.pay_type== 4){ }}
        <img src="/static/img/pay/wechat-pay.png" class="pay-logo">
        {{# } }}
        {{# if(d.orders.pay_type== 5){ }}
        <img src="/static/img/pay/alipay.png" class="pay-logo">
        {{# } }}
    </div>
    <div class="pay_con display_flex">
        <div class="left">
            <div class="order-info">
                <div class="order-info-item">订单标题：购买《{{d.orders.goods_name}}》</div>
                <div class="order-info-item">订单编号：{{d.orders.out_trade_no}}</div>
                <div class="order-info-item">购买用户：{{d.user.nickname}}（{{d.user.phone}}）</div>
                <div class="order-info-item">订单价格： <span class="price">{{# if(d.orders.sale_type== 2){ }}￥{{# } }}{{d.orders.sale_price || '免费'}} {{# if(d.orders.sale_type== 1){
                }}积分{{# } }}</span></div>
            </div>
            <div class="pay_qr">
                <img src="/common/plugins/qrcode/?text={{d.pay_info.code_url}}">
            </div>
            <div class="tips">
                使用{{# if(d.orders.pay_type== 4){ }}微信{{# } }}{{# if(d.orders.pay_type== 5){ }}支付宝{{# } }}扫描二维码支付
            </div>
        </div>
        <div class="right">
            {{# if(d.orders.pay_type== 4){ }}
            <img src="/static/img/pay/screenshot-wechat.png" class="pay-logo">
            {{# } }}
            {{# if(d.orders.pay_type== 5){ }}
            <img src="/static/img/pay/screenshot-alipay.png" class="pay-logo">
            {{# } }}
        </div>
    </div>
</script>
<script>
    let shopUrl='{:GetConfig('system','shop_url')}';
</script>
<script src="/static/js/common/shop/config.js?t={:time()}"></script>
<script src="/static/js/common/shop/confirm.js?t={:time()}"></script>
</body>
</html>